import 'package:blurb/common/store/topic_store.dart';
import 'package:blurb/common/store/user_store.dart';
import 'package:blurb/common/store/share_store.dart';
import 'package:blurb/common/store/comment_store.dart';

class StoreProvider {
  // 单例模式
  static final StoreProvider _instance = StoreProvider._internal();
  factory StoreProvider() => _instance;
  StoreProvider._internal();

  // 用户状态
  final UserStore userStore = UserStore();
  
  // 分享状态
  final ShareStore shareStore = ShareStore();
  
  // 评论状态
  final CommentStore commentStore = CommentStore();
  
  // 话题状态
  final TopicStore topicStore = TopicStore();
  
  // 初始化所有状态
  Future<void> init() async {
    await userStore.init();
    await shareStore.init();
    await commentStore.init();
    await topicStore.init();
  }
} 